package com.zdkj.subway.st.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.zdkj.common.core.exceltools.HeaderToColumn;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @ProjectName: zdkj
 * @Package: com.zdkj.subway.st.entity
 * @ClassName: SwStStockFlow
 * @Description:
 * @Author: kangjian
 * @CreateDate: 2020/8/9 9:35
 * @Version: 1.0
 */
@Data
@TableName("sw_tk_stock_flow")
@ApiModel(value = "车票库存流动")
@EqualsAndHashCode(callSuper = true)
public class SwTkStockFlow extends Model<SwTkStockFlow> {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "唯一标识")
    private Integer id;

    @ApiModelProperty(value = "车票名称")
    private String ticketName;

    @ApiModelProperty(value = "票种")
    private String ticketType;

    @ApiModelProperty(value = "车票用途")
    private String ticketPurpose;

    @ApiModelProperty(value = "流动前票区")
    private String flowBeforeTicketArea;

    @ApiModelProperty(value = "流动后票区")
    private String flowAfterTicketArea;

    @ApiModelProperty(value = "流动原因")
    private String flowReason;

    @ApiModelProperty(value = "车票次数")
    private Integer ticketTimes;

    @ApiModelProperty(value="车票金额")
    private BigDecimal ticketPrice;

    @ApiModelProperty(value = "数量")
    private Integer storageNumber;

    @ApiModelProperty(value = "车票有效期")
    private Integer activeTime;

    @ApiModelProperty(value = "审核状态,0:未提交,1:已提交,2:待审批,3:审批通过,4:审批不通过")
    @ExcelProperty(value = "审核状态",index = 9)
    private String checkStatus;

    @ApiModelProperty(value = "申请时间")
    @ExcelProperty(value = "申请时间",index = 5)
    private LocalDateTime applyTime;

    @ApiModelProperty(value = "审核人")
    private String checkPersonId;

    @ApiModelProperty(value = "审核时间")
    private LocalDateTime checkTime;

    @ApiModelProperty(value = "审核建议")
    @ExcelProperty(value = "审核建议",index = 7)
    private String checkReason;

    @ApiModelProperty(value="申请人ID")
    private Integer applyPersonId;

    @ApiModelProperty(value="申请人名称")
    private String applyPersonName;

    @ApiModelProperty(value="申请人工号")
    private String applyPersonCode;

    @ApiModelProperty(value = "备注")
    @ExcelProperty(value = "备注",index = 10)
    private String remark;

    @ApiModelProperty(value = "创建人ID")
    private Long creatorId;

    @ApiModelProperty(value = "创建人名称")
    private String creatorName;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime create_time;

}
